package com.xkcoding.helloworld.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class DiscountDServiceImpl implements DiscountService {

    @Autowired
    private DiscountDefaultServiceImpl defaultService;

    @Override
    public String getDiscountResult(BigDecimal price) {
        return defaultService.getDiscountResult(price);
    }


}
